import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase = "DBshop008_销售管理支付记录"

firefox=openBrowser(url)

firefox.get(urlAdmin)

DBshopLoginAdmin(firefox)

DBshopEnterMenu2(firefox,'销售管理','支付记录')

firefox.find_element_by_xpath("//table/tbody/tr[1]/td[1]/a").click()

try:
    firefox.find_element_by_link_text("返回订单列表")

    writeLog("%s 测试通过" % testCase)
except:
    writeLog("%s 测试失败" % testCase)

    getPhoto(firefox)
firefox.quit()
